package super04;
// 员工类
public abstract  class Employee {
    private String id;
    private String name;
    private String marryStatus;

    //如果员工未指定婚姻状况，我们就将mattrStatus设置为未婚
    public Employee(String name,String id){
        this(name,id,"未婚");
    }
    public Employee(String name,String id,String marryStatus){
        this. name=name;
        this.id=id;
        this.marryStatus=marryStatus;

    }
    public abstract void work();
    // 由于不同员工干活不一样，因此work的方法体无法确定时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMarryStatus() {
        return marryStatus;
    }

    public void setMarryStatus(String marryStatus) {
        this.marryStatus = marryStatus;
    }
}
